#include "app_message.h"
#include "log/log.h"

int main(int argc, char const *argv[])
{
    char *json = "{\"conn_type\":1,\"id\":\"5858\",\"msg\":\"61626364\"}";
    char chars_buf[100];
    int len = app_message_jsonToChars(json, chars_buf, sizeof(chars_buf));
    log_debug("字符数组：%.*s, 长度：%d", len, chars_buf, len);

    char *json2 = app_message_charsToJson(chars_buf, len);
    log_debug("json: %s", json2);


    return 0;
}
